const TSDownloader = require('./components/downloader/index.js')
const Source = require('./components/source/index.js')
const path =require('path')

const downloader = new TSDownloader()
const source =new Source()
source.init().then(lib=>{
  downloader.setSource(lib)
  const filename = '五个扑水的少年'
  downloader.download(filename, path.resolve(`./downloads/${filename}`))
})



